﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Repository
/// </summary>
public class Repository
{
    public Up1VNDataContext DB { get; set; }

    public Repository()
    {
        DB = new Up1VNDataContext();
    }

    #region Product


    public List<string> GetResult(string key)
    {
        throw new NotImplementedException();
    }

    public EStore GetEstoreByID(string id)
    {
        return DB.EStores.Single(p=>p.EStore_Id == Int32.Parse(id)); 
    }
        
    #endregion

    
}